<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/css/jquery-ui.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/css/uniform.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/css/select2.css"/>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery.uniform.js">	</script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/select2.min.js">	</script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/jquery.dataTables.min.js">	</script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/unicorn.js">	</script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl.WWWROOT_BACKEND; ?>/js/unicorn.tables.js">	</script>
<style type="text/css">
	.module-heading-row, .application-heading-row th{font-size: 15px !important}
</style>
<div class="widget-box dataTables_wrapper">
	<div class="well well-small">
		<p><?php echo Rights::t('core', 'Please select which items you wish to generate.'); ?></p>
	</div>
	<?php $form=$this->beginWidget('CActiveForm', array('htmlOptions'=>array('class'=>'form-horizontal'))); ?>
	<fieldset>
		<div class="widget-box">
			<div class="widget-title">
				<span class="icon">
					<input type="checkbox" id="title-checkbox" name="title-checkbox" />
				</span>
				<h5>Static table with checkboxes</h5>
			</div>
			<div class="widget-content nopadding">
				<table class="table table-bordered table-striped table-hover with-check">
					<tbody>
						<tr class="application-heading-row">
							<th colspan="3"><?php echo Rights::t('core', 'Application'); ?></th>
						</tr>
						<?php $this->renderPartial('_generateItems', array(
							'model'=>$model,
							'form'=>$form,
							'items'=>$items,
							'existingItems'=>$existingItems,
							'displayModuleHeadingRow'=>true,
							'basePathLength'=>strlen(Yii::app()->basePath),
						)); ?>
					</tbody>
				</table>
		</div>
		<!--div class="control-group">
			<?php echo CHtml::link(Rights::t('core', 'Select all'), '#', array(
				'onclick'=>"jQuery('.generate-item-table').find(':checkbox').attr('checked', 'checked'); return false;",
				'class'=>'selectAllLink')); ?>
			/
			<?php echo CHtml::link(Rights::t('core', 'Select none'), '#', array(
				'onclick'=>"jQuery('.generate-item-table').find(':checkbox').removeAttr('checked'); return false;",
				'class'=>'selectNoneLink')); ?>
		</div-->

		<div class="form-actions">
			<?php echo CHtml::submitButton(Rights::t('core', 'Generate'), array('class'=>'btn btn-primary')); ?>
		</div>
	</fieldset>
	<?php $this->endWidget(); ?>
</div>